/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mvc.model;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author ERVIRI
 */
public class Proveedor extends Persona{
    private String codigo;

    public String getCodigo() {
        return codigo;
    }

    public void setCodigo(String codigo) {
        this.codigo = codigo;
    }


  public static Proveedor load(ResultSet rs)throws SQLException{

	     Proveedor p=new Proveedor();

               p.setCodigo(rs.getString(1));
               p.setNombre(rs.getString(2));
               p.setApellidoUno(rs.getString(3));
               p.setTelefono(rs.getInt(4));
               p.setDireccion(rs.getString(5));
               p.setEmail(rs.getString(6));
              

	       return p;
	}



}
